package com.baichuan.zntx.domain.bo;

import com.baichuan.common.core.validate.AddGroup;
import com.baichuan.common.core.validate.EditGroup;
import com.baichuan.zntx.domain.Task;
import com.baichuan.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 任务记录业务对象 t_task
 *
 * @author MaZhanliang
 * @date 2024-05-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Task.class, reverseConvertGenerate = false)
public class TaskBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 设备
     */
    @NotBlank(message = "设备不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 任务类型
     */
    @NotNull(message = "任务类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer taskType;

    /**
     * 是否执行
     */
    private Integer status;

    /**
     * 执行时间
     */
    private LocalDateTime excuteTime;

    private LocalDateTime deadLine;

    private LocalDateTime startTime;

}
